<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
  <head>
    <title>MyHtml.html</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<script type="text/javascript" src="js/jquery/jquery-1.8.2.min.js"></script>
  </head>
  
  	<script type="text/javascript">
  		
		$().ready(function(){
			$("#id").unbind("click");
			$("#id").bind('click',function(){
				var $div=$("<div></div>");
				$div.html("ddd");
				$("body").append($div);
			});
		});
		$().ready(function(){
			$("body").delegate("div","click",function(){
				alert("ddd");
			});
		});
</script>

  <body>
  	
  <button value="点我" id="id"></button>
  </body>
</html>
